<?php 
    echo form_open(base_url()."index.php/part/result"); 
?>
    <h1 class="blue">Parts & Accessories</h1>
    <table class="table_advance">
        <tbody>
            <tr>
                <td>Parts/Accessories</td>
                <td>&nbsp;</td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <select name="part">
                        <option value="">Please select</option>
<?php 
                    foreach($service->result() as $row)
                    { 
?>
                        <option>
<?php 
                            echo $row->name;
?>
                        </option>
<?php
                    }
?>      
                    </select>                   
                </td>
                <td>&nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td>Location</td>
                <td>&nbsp;</td>
                <td>Make</td>
            </tr>
            <tr>
                <td>
                    <select name="location">
                        <option value="">Please select</option>
<?php 
                    foreach($location->result() as $row)
                    { 
?>
                        <option>
<?php 
                            echo $row->province;
?>
                        </option>
<?php
                    }
?>      
                    </select> 
                </td>
                <td>&nbsp;</td>
                <td> 
                    <select name="make" class="row_non_insurance" id="make">
                        <option value="">Please select</option>
<?php 
                    foreach($make->result() as $row)
                    { 
?>
                        <option value="<?php echo $row->id; ?>">
<?php 
                            echo $row->name;
?>
                        </option>
<?php
                    }
?>                              
                    </select>                    
                </td>
            </tr>
            <tr>
                <td>Name</td>
                <td></td>
                <td>Model</td>
            </tr>
            <tr>
                <td>
                    <input type="text" name="vendor" value="" />
                </td>
                <td></td>
                <td>
                    <select name="model" id="model">
                        <option value="">Please select</option>
<?php 
                    //foreach($model->result() as $row)
                    //{ 
?>
                        <!--
                        <option>
<?php 
                            //echo $row->name;
?>
                        </option>
                        -->
<?php
                    //}
?>      
                    </select>                    
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <input type="submit" value="Search" name="submit" class="search" />
                </td>
            </tr>
        </tbody>
    </table>
<?php  
    echo form_close();
?>